package com.blockmeta.bbs.businesslibrary.websocket;

public class Fields
{
	public static final int HIGH         = 332; // 最高價
	public static final int LOW          = 333; // 最低價
	public static final int TRADEDATE    = 75; // 交易日期	
	public static final int TRADETIME    = 273; // 交易時間	
	public static final int TOTALVOLUME  = 14; // 總量
	public static final int PRICE        = 31; // 成交價
	public static final int OPENINTEREST = 746; // 持倉	
	public static final int BID          = 132; // 買進價
	public static final int ASK          = 133; // 賣出價
    public static final int BID_SIZE     = 134; // 買進量
    public static final int ASK_SIZE     = 135; // 賣出量
	public static final int PRECLOSE     = 140; // 昨收價
	public static final int PRECLOSE_FC  = 142; // 期货昨收（期货的昨收字段140被昨结占据）

	public static final int VOLUME       = 1020; // 成交量
	public static final int OPEN         = 1025; // 開盤價
	public static final int DOWNLIMIT    = 1148; // 跌停價
	public static final int UPLIMIT      = 1149; // 漲停價	
	public static final int W52_HIGH     = 20002;// 52周最高價
	public static final int W52_LOW      = 20003; // 52周最低價	
	public static final int UPDOWN       = 20004; // 漲跌
	public static final int UPDOWN_RATIO = 20005; // 漲跌幅
	public static final int SHORT_NAME 	 = 20006; // 商品短名
	public static final int EN_NAME 	 = 20007; // 商品英文名稱
	public static final int CN_NAME 	 = 20008; // 商品簡中名稱
	public static final int TW_NAME 	 = 20010; // 商品繁中名稱
	public static final int AMOUNT		= 20011; // 總成交金額
	public static final int AVERAGE_PRICE= 20012; // 均價
	public static final int BIDP1 	     = 20101; // 委買價1
	public static final int BIDP2 	     = 20103; // 委買價2
	public static final int BIDP3 	     = 20105; // 委買價3
	public static final int BIDP4 	     = 20107; // 委買價4
	public static final int BIDP5 	     = 20109; // 委買價5
	public static final int BIDV1 	     = 20111; // 委買量1
	public static final int BIDV2 	     = 20113; // 委買量2
	public static final int BIDV3 	     = 20115; // 委買量3
	public static final int BIDV4 	     = 20117; // 委買量4
	public static final int BIDV5 	     = 20119; // 委買量5
	public static final int ASKP1 	     = 20102; // 委賣價1
	public static final int ASKP2 	     = 20104; // 委賣價2
	public static final int ASKP3 	     = 20106; // 委賣價3
	public static final int ASKP4 	     = 20108; // 委賣價4
	public static final int ASKP5 	     = 20110; // 委賣價5
	public static final int ASKV1 	     = 20112; // 委賣量1
	public static final int ASKV2 	     = 20114; // 委賣量2
	public static final int ASKV3 	     = 20116; // 委賣量3
	public static final int ASKV4 	     = 20118; // 委賣量4
	public static final int ASKV5 	     = 20120; // 委賣量5

	public static final int BIDP6 	     = 20121; // 委買價6
	public static final int BIDP7 	     = 20123; // 委買價7
	public static final int BIDP8 	     = 20125; // 委買價8
	public static final int BIDP9 	     = 20127; // 委買價9
	public static final int BIDP10 	     = 20129; // 委買價10
	public static final int BIDV6 	     = 20131; // 委買量6
	public static final int BIDV7 	     = 20133; // 委買量7
	public static final int BIDV8 	     = 20135; // 委買量8
	public static final int BIDV9 	     = 20137; // 委買量9
	public static final int BIDV10 	     = 20139; // 委買量10
	public static final int ASKP6 	     = 20122; // 委賣價6
	public static final int ASKP7 	     = 20124; // 委賣價7
	public static final int ASKP8 	     = 20126; // 委賣價8
	public static final int ASKP9 	     = 20128; // 委賣價9
	public static final int ASKP10 	     = 20130; // 委賣價10
	public static final int ASKV6 	     = 20132; // 委賣量6
	public static final int ASKV7 	     = 20134; // 委賣量7
	public static final int ASKV8 	     = 20136; // 委賣量8
	public static final int ASKV9 	     = 20138; // 委賣量9
	public static final int ASKV10 	     = 20140; // 委賣量10


	public static final int BUYDEALVOL	= 20014; // 內盤量
	public static final int SELLDEALVOL	= 20015; // 外盤量
//	public static final int BUYDEALAMT	= 20020; // 內盤金額
//	public static final int SELLDEALAMT	= 20021; // 外盤金額
	public static final int TURNOVERRT	= 20025; // 換手率
	public static final int VALPFTRT		= 20026; // 市盈率
	public static final int TOTALVALUE	= 20027; // 總市值
	public static final int OUTVALUE		= 20028; // 流通市值
	public static final int AMPLITUDE	= 20029; // 振幅
	public static final int DAYINTERST = 1500; // 日增倉

	public static final int TransactionId = 20150; // 逐笔的id
	public static final int TransactionPrice = 20151; // 逐笔价格
	public static final int TransactionQuantity = 20152; // 逐笔数量
	public static final int TransactionBuySellFlag = 20153; // 逐笔方向
	public static final int TransactionTime = 20154; // 逐笔时间

	public static final int FieldCount   = 50; // 欄位數
	public static final int[] VOLUMEARR =
	{ VOLUME, TOTALVOLUME, BID_SIZE, ASK_SIZE,
			ASKV1, ASKV2, ASKV3, ASKV4, ASKV5, BIDV1, BIDV2, BIDV3, BIDV4, BIDV5,
			ASKV6, ASKV7, ASKV8, ASKV9, ASKV10, BIDV6, BIDV7, BIDV8, BIDV9, BIDV10,
			BUYDEALVOL, SELLDEALVOL };

}
